import request from '@/config/axios'

// 获取文件记录
export const getFileHistoryApi = (data) => {
  return request.post({
    url: '/getFileHistory',
    data
  })
}

// 批量上传文件
export const batchFileApi = (data) => {
  return request.post({
    url: '/batchFile',
    data,
    headersType: 'multipart/form-data'
  })
}

// 付款/拒收
export const paymentOrRejectionApi = (data) => {
  return request.post({
    url: '/paymentOrRejection',
    data
  })
}

// 文件上传oss
export const uploadFillToOssApi = (dirname, data) => {
  return request.post({
    url: `https://service.zeroccharge.com/iot_device/oss/upload/thu-ee-design/${dirname}`,
    data,
    headersType: 'multipart/form-data'
  })
}
